Skip to content

haxrob/xpasn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

xpasn

Expands an autonomous system (AS) number to it's prefixes/networks or individual IP addresses.

Useful to chain into other tools that accept hosts via standard input, such as httprobe or vulnerability scanners.

Installation

If you have a Go environment ready to go:

go get github.com/x1sec/xpasn

Precompiled executables for Windows, Linux and MacOS can be downloaded here

Usage

Running with no parameters will return a list of prefixes/subnets that belong to the AS. For example Tesla Motors

$ xpasn AS394161
8.45.124.0/24
192.95.64.0/24
199.66.9.0/24
...

The -e flag will output the host IP addresses for each prefix.

$ xpasn -e AS394161
8.45.124.1
8.45.124.2
8.45.124.3
...

Example scanning for Citrix CVE-2019-19781 with citrixmash_scanner

$ xpasn AS394161 | ./citrixmash_scanner

About

Expands an autonomous system (AS) number into prefixes or individual host IP addresses

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages